package com.zxshhy;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 库存远程调用接口
 */
@FeignClient(name="zxshhy-storage-service")
@RequestMapping("/tcc/storage")
public interface StorageTCCServiceFeign {

//    @RequestMapping(path = "/deduct")
    @PostMapping(path = "/deduct")
    Boolean deduct(@RequestParam("commodityCode") String commodityCode, @RequestParam("count") Integer count);
}
